<template>
  <div>
    <message-dom v-if="$store.getters.messageShow"></message-dom>
    <router-view></router-view>
  </div>
</template>


<script>
import messageDom from "@/components/common/message/index.vue";
export default {
  components: {
    messageDom,
  },
  created() {
    this.$nextTick(() => {
      if (document.createElement("canvas").toDataURL("image/webp").indexOf("data:image/webp") == 0) {
        this.$store.commit("addIsWebp", true)
      } else {
        this.$store.commit("addIsWebp", false)
      }
    })
  }
}
</script>
<style lang="less">
* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  list-style: none;
  flex-shrink: 0;
  flex-grow: 0;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  text-transform: none !important;
  box-sizing: border-box;
}

input[disabled] {
  cursor: not-allowed !important;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: none;
  background-color: rgba(240, 240, 240, 1);
  margin: 0 auto;
  min-height: 100vh;
  cursor: url('@/assets/锥形瓶-毛玻璃.png'), auto;
}

button {
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  outline: none;
  background-color: transparent;
}

.el-notification {
  display: inline-block !important;
}

a,
button,
input {
  -webkit-tap-highlight-color: rgba(255, 0, 0, 0);
}

button,
.el-button,
a,
.forgotPassword,
label,
.weixin,
.qq,
.privacy,
.back {
  cursor: url('@/assets/手.png'), auto !important;
}

.mouse-active {
  cursor: url('@/assets/手.png'), auto;
}

body p {
  text-align: justify;
  text-justify: newspaper;
  word-wrap: break-word;
  word-break: break-all;
  margin-top: 0;
  margin-bottom: 0;
}

input {
  -webkit-appearance: none;
}



// 滚动条样式
/*滚动条整体部分,必须要设置*/
::-webkit-scrollbar {
  width: 0;
  height: 0;
  // background-color: transparent;
}

/*滚动条的轨道*/
::-webkit-scrollbar-track {
  background-color: transparent;
  // background-color: gray;
}

/*滚动条的滑块按钮*/
::-webkit-scrollbar-thumb {
  // border-radius: 10px;
  background-color: #CDD0D6;
  // box-shadow: inset 0 0 5px rgb(7, 61, 92);
}

/*滚动条的上下两端的按钮*/
::-webkit-scrollbar-button {
  height: 0px;
  width: 0px;
  background-color: rgb(7, 61, 92);
}

// 两个滚动条的交汇处
::-webkit-scrollbar-corner {
  background-color: transparent;
}

// 字体
// 阿里巴巴普惠体
@import '@/assets/fonts/AlibabaPuHuiTi/index.css';

// 站酷庆科黄油体
@import '@/assets/fonts/zcoolqingkehuangyouti/stylesheet.css';

// 英文字体
@import '@/assets/fonts/英文字体/font.css';

// 35J CEJ
@import '@/assets/fonts/正文字体/点字典黑35J-CEJ/stylesheet.css';

// 45J DEJ
@import '@/assets/fonts/正文字体/点字典黑45J-DEJ/stylesheet.css';

// 55J EEJ
@import '@/assets/fonts/正文字体/点字典黑55J-EEJ/stylesheet.css';

// 65J FEJ
@import '@/assets/fonts/正文字体/点字典黑65J-FEJ/stylesheet.css';

// 75J GEJ
@import '@/assets/fonts/正文字体/点字典黑75J-GEJ/stylesheet.css';

// 主要数字字体
@import '@/assets/fonts/主要数字字体/stylesheet.css';


.el-form {
  label {
    align-items: center;
  }

  .el-form-item {
    display: flex;
    align-items: center;
  }
}
</style>
